/**
* this class represents the model for the game.
* 
* @author Anna
* @version 1.0
*/
public class Model implements java.io.Serializable{ // $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString
	/**
	 * Field player
	 */
	private Player player; // $codepro.audit.disable variableShouldBeFinal
	
	/**
	 * field universe
	 */
	private Universe universe;
	
	/**
	 * Field ship
	 */
	private Ship ship;
	
	/**
	* this Model() constructor creates a new player and new ship when called
	* and creates a model object for the game
	*/
	public Model(){
		player = new Player();
		ship = new Ship();
	}
	
	/**
	* this getPlayer() method returns the current player
	* 
	* @return player
	*/
	public Player getPlayer(){
		return player;
	}
	
	/**
	* this getUniverse() method returns the current universe
	*
	* @return universe
	*/
	public Universe getUniverse(){
		return universe;
	}
	
	/**
	* this method sets the universe that the player will be in 
	* to the universe entered into the parameter
	*
	* @param u - the universe that the game should be set to
	*/
	public void setUniverse(Universe u){
		universe=u;
	}
	
	/**
	* this getShip() method gets the players current ship.
	* 
	* @return ship
	*/
	public Ship getShip(){
		return ship;
	}

	/**
	 * setter method for the ship
	 * 
	 * @param ship
	 */
	public void setShip(Ship ship) {
		// TODO Auto-generated method stub
		this.ship=ship;
	}
	
}
